<?php
namespace app\shell;

use app\service\Factory4GService;
use share\service\SimBindDeviceService;
use share\console\CLIRunner;

class C4GTest  extends CLIRunner{

    /**
     * 东方物联 流量查询
     */
    public function test_qeury_east_iot_action(){   
        // Factory4GService::getQueryCurlHandleOfEastIot('8986112221904147103',[
        //     'apiUrl' => 'http://m2m.antsvision.com',
        //     'appKey' => 'zg8YWKjjPM',
        //     'appSecret' => '0G2ivBGjlV0UCmyoFxsEA8vYoCL79Lpk',
        // ]);

        return SimBindDeviceService::getBindInfo('8986112221904147103');
        
    }

    /**
     * 妙月
     */
    public function test_qeury_mus_moon_action(){
        // Factory4GService::getQueryCurlHandleOfMusMoon('8986032344200784131',[
        //     'apiUrl' => 'https://papi.musmoon.com/api/v2/checkCard',
        //     'appKey' => 'zg8YWKjjPM',
        //     'appSecret' => '0G2ivBGjlV0UCmyoFxsEA8vYoCL79Lpk',
        // ]);
        return SimBindDeviceService::getBindInfo('8986032344200784131');
    }

    /**
     * 移远
     */
    public function test_qeury_yiyuan_action(){
        // Factory4GService::getQueryCurlHandleOfYiYuan('8986112224104911851',[
        //     'apiUrl' => 'https://api.quectel.com/openapi/router',
        //     'appKey' => 'f3u373YA977zV40i',
        //     'appSecret' => 'wd667Yiu',
        // ]);
        return SimBindDeviceService::getBindInfo('8986112224104911851');
    }

    /**
     * 国丰
     */
    public function test_qeury_guofeng_action(){
        // Factory4GService::getQueryCurlHandleOfGuofeng('8986112025903909698',[
        //     'apiUrl' => 'http://iot.gfsdsz.com:32003',
        //     'appKey' => '368872318a42e425b9n0985b70p0e11',
        //     'appSecret' => '368872318a42e425b9n0985b70p0e11',
        //     'userId' => '1',
        // ]);
        return SimBindDeviceService::getBindInfo('8986112025903909698');
    }
}